<template>
    <el-cascader :options="options" :props="{checkStrictly: true}" clearable @change="handleChange" />
</template>

<script setup>
  const props = defineProps({'options': Array})
  const emit = defineEmits();

  const handleChange = (value) => {
    emit('update:modelValue', value[value.length - 1] ); // 存储最后一个选中的节点的 value
  }
</script>

